package com.neusoft.gene.nep.role.mapper;

import com.neusoft.gene.nep.role.entity.Sysnode;
import com.neusoft.gene.nep.role.entity.Roles;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: TODO   角色表 Mapper 接口
 * @author: 君醉
 * @date: 2024/6/19 16:10
*/

@Mapper
public interface RolesMapper extends BaseMapper<Roles> {

    public List<Integer> selectSysnodesByRid(@Param("rid") Integer rid);

    int deleteRoleAuth(@Param("rid")  Integer rid);

    int insertRoleAuth(@Param("rid")int  rid, @Param("sysnodeids")  List<Integer> sysnodeids);

    List<Sysnode> selectMenuByRoleid(@Param("roleid") Integer roleid);
}
